public class test1 {
    public static void main(String[] args) {
       MyLinkedList myLinkedList = new MyLinkedList();
       myLinkedList.addFirst(1);
       myLinkedList.addLast(2);
       myLinkedList.addIndex(3,2);
       myLinkedList.display();
    }
}
